package day05;
public class XuanZheSort {
	public static void main(String[] args){
		int[] a={8, 2, 3, 9, 6, 7, 4, 1, 5};
		
		for (int i=0; i<a.length-1; i++){
			for(int j=i+1; j<a.length; j++){
				if(a[i]>a[j]){
					int temp=a[i];
					a[i]=a[j];
					a[i]=temp;
				
				}
			}	
			
		}for(int i=0; i<a.length;i++){
			System.out.print(a[i]+"  "+'\t');
		}	
	}
	
}
